require "http"

local hits = cjson.decode(res.body).hits.hits
local list = {}
for index, value in ipairs(hits) do
  local source = value._source
  if source ~= nil then
    source.uid = nil
    source.source = nil
    list[index] = source
  end
end